<template>
  <h3>我是App组件（祖先组件）</h3>
</template>

<script>
  import { ref, reactive, readonly, isRef, isReactive, isReadonly, isProxy } from 'vue';

  export default {
    name: 'App',
    setup() {
      let car = reactive({
        name: '奔驰',
        price: '50w'
      });
      let sum = ref(0);
      let readonlyCar = readonly(car);

      console.log(isRef(sum));
      console.log(isReactive(car));
      console.log(isReadonly(readonlyCar));
      console.log(isProxy(car));
    }
  }
</script>
<style lang="css">

</style>